const fs = require('fs')
const path = require('path')

export function addLog(logData) {
  // const logPath = path.join(__dirname + '/resources/log/', 'log.json')
  const logPath = 'C:\\appData\\log\\log.json'

  fs.appendFile(logPath, JSON.stringify(logData) + '\n', (err) => {
    if (err) {
      console.error('Error adding log:', err)
    }
  })
}
